﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using ConstructionBidOnline.Biz;
using ConstructionBidOnline.DAL;
using ConstructionBidOnline.DAL.dsRegisteredUserTableAdapters;

public partial class ContractorSearchResult : System.Web.UI.Page
{

    #region Public Variables

    public dsRegisteredUser.SearchContractorDataTable ContractorTableForPaging = new dsRegisteredUser.SearchContractorDataTable();
    public dsRegisteredUser.SearchContractorDataTable ContractorTablePerPage = new dsRegisteredUser.SearchContractorDataTable();

    public static ProfileImages profileimageObj;


    #endregion


    #region Event Handlers

    #region Page Load

    protected void Page_Load(object sender, EventArgs e)
    {
        SearchContractorTableAdapter adapter = new SearchContractorTableAdapter();
        adapter.Connection = AppSettings.GetDbConn();
        if ((Request.QueryString["Key"] != null) && (Request.QueryString["Page"] != null))
        {
            //ContractorTablePerPage = adapter.SearchContractorPerPage(Request.QueryString["Key"].ToString(), Int32.Parse(Request.QueryString["Page"].ToString()) * 10);
           //ContractorTableForPaging = adapter.SearchContractorForPaging(Request.QueryString["Key"].ToString());
        }
        else
        {
            //ContractorTablePerPage = adapter.SearchContractorPerPage("", 1 * 10);
            //ContractorTableForPaging = adapter.SearchContractorForPaging("");
        }
    }

    #endregion

    #endregion
}
